import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/views/Home.vue'

// 获取环境变量，Vite 会自动替换这里的值
const base = import.meta.env.VITE_BASE_URL || '/'
const router = createRouter({
  history: createWebHistory(base),
  routes: [
  
       {
         path: '/',
         name: 'Home',
         component: Home,
       },
    {
      path: '/Shopping',
      name: 'Shopping',
      component: () => import('@/views/Shopping.vue'),
    },
    {
      path: '/Live',
      name: 'Live',
       component: () => import('@/views/Live.vue'),
    },
    {
      path: '/My',
      name: 'My',
       component: () => import('@/views/My.vue'),
    },
    {
      path: '/Search',
      name: 'Search',
       component: () => import('@/views/Search.vue'),
    },
    {
      path: '/Search/SearchIndex',
      name: 'SearchIndex',
      component: () => import('@/views/Search/SearchIndex.vue'),
    },
   
  ],
})
export default router